<meta charset="UTF-8">

<h1>f12查看效果</h1>
<script src="./utils.js"></script>


<h1>日期格式化</h1>
<div id="demo1"></div>
<script>
var result=""
result += "fnDate('2022-4-14 11:35:19') // "+fnDate('2022-4-14 11:35:19') + "<br />"
result += "fnDate('2022-4-14 9:35:19') // "+fnDate('2022-4-14 9:35:19') + "<br />"
result += "fnDate('2022-4-14 1:35:19') // "+fnDate('2022-4-14 1:35:19') + "<br />"
document.querySelector('#demo1').innerHTML = result
</script>

<h1>快速获取当前时间</h1>
<div id="demo2"></div>
<script>
var result = ''
result += "format('YmdHis') // "+format('YmdHis') + "<br />"
result += "format('Y-m-d H:i:s') // "+format('Y-m-d H:i:s') + "<br />"
result += "format('Y-m-d ') // "+format('Y-m-d') + "<br />"
result += "format('Y') // "+format('Y') + "<br />"
result += "format('d') // "+format('d') + "<br />"
result += "format('m') // "+format('m') + "<br />"
result += "format('H') // "+format('H') + "<br />"
result += "format('i') // "+format('i') + "<br />"
result += "format('s') // "+format('s') + "<br />"
document.querySelector('#demo2').innerHTML = result
</script>

<h1>随机变化颜色</h1>
<div id="demo3"></div>
<script>
var result=""   
result += "randomcolor()//"+randomcolor()+"<br/>"
document.querySelector('#demo3').innerHTML = result
</script>

<h1>判断是什么浏览器</h1>
<div id="demo4"></div>
<script>
var result=''
result += "nav()//"+nav('Chrome')+"<br/>"
document.querySelector('#demo4').innerHTML = result
</script>

<h1>判断是PC还是移动端</h1>
<div id="demo5"></div>
<script>
var result = ''
result += "pc()// "+pc() + "<br />"
document.querySelector('#demo5').innerHTML = result
</script>


<h1>是否微信浏览器</h1>
<div id="demo6"></div>
<script>
var result = ''
result += "WeChat() //" + WeChat() + "<br />"
document.querySelector('#demo6').innerHTML = result
</script>

<h1>返回标签样式</h1>
<div id="demo7"></div>
<script>
var result = ''
result += "getStyle() // "+getStyle() + "<br />"
document.querySelector('#demo7').innerHTML = result
</script>



